<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> / <a href="{url('label/index')}">调用标签</a></div>
<div class="m10">
<div class="table-head fn-clear">
    <div class="fn-l"><a href="{url('label/index')}" class="button"> <i class="iconfont">&#xf0ca;</i> 列表</a><strong>调用标签</strong></div>
    <div class="fn-r">
        <a href="{url('label/addChannel')}" class="button button-blue" title="增加栏目标签"><i class="iconfont" title="增加栏目标签">&#xf055;</i> 增加栏目标签</a>
        <a href="{url('label/addContent')}" class="button button-blue" title="增加内容标签"><i class="iconfont" title="增加内容标签">&#xf055;</i> 增加内容标签</a>   
    </div>
</div>
<table class="table table-bordered table-striped" width="100%">
<thead><tr><th class="w40 fn-tac">#</th><th class="w60 fn-tac">标签类型</th><th class="fn-tac w120">标签名称</th><th class="fn-tal">标签参数</th><th class="fn-tac w120">创建时间</th><th class="fn-tac w120">操作</th></tr></thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac"><span class="badge bg-red fn-f14">{$vo['id']}</span></td>
    <td class="fn-tac">{if $vo['type']==1}<span class="badge bg-green fb-l">栏目</span>{else}<span class="badge bg-blue fb-l">内容</span>{/if}</td>
    <td class="fn-tac">{$vo['title']}</td>
    <td class="fn-tal fn-f14">
{if $vo['type']==1}排序:<span class="blue">{$vo['es_order']}</span>{if $vo['es_where']}、SQL条件:<span class="blue">{$vo['es_where']}</span>{/if}{/if}
{if $vo['type']==2}
    {if $vo['es_search']}<span class="blue">支持搜索</span>{else}<span class="red">禁止搜索</span>{/if}、
    {if $vo['es_locks'] == 1}<span class="blue">{if $vo['es_subclass']}包含子类{else}不包含子类{/if}</span>、{/if}
    {if $vo['es_special']}特性:<span class="blue">{$vo['es_special']}</span>、{/if}
    {if $vo['es_limits']}数量 <span class="blue">{$vo['es_limits']}</span> 条、{/if}
    {if $vo['es_order']}排序:<span class="blue">{$vo['es_order']}</span>{/if}
{/if}
    </td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac">
       <a href="{url('label/preview',array('id'=>$vo['id']))}">预览</a> /
 {if $vo['type']==1} <a href="{url('label/addChannel',array('id'=>$vo['id']))}">编辑</a> /{/if}
 {if $vo['type']==2} <a href="{url('label/addContent',array('id'=>$vo['id']))}">编辑</a> /{/if}
        <a title="删除" class="del" url="{url('label/index',array(id=>$vo['id'],act=>del))}" href="###">删除</a>
    </td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','dialog',function(){
  $('.del').click(function(){$(this).del();});
})
</script>
</body>